package com.yuqiao.read.lambda;

public class Transaction {

    private final Trader trader;
    private final int year;
    private final int value;
    public Transaction(Trader trader, int year, int value){
        this.trader = trader;
        this.year = year;
        this.value = value;
    }
    public Trader getTrader(){
        return this.trader;
    }
    public int getYear(){
        return this.year;
    }
    public int getValue(){
        return this.value;
    }
    @Override
    public String toString(){
        return "{" + this.trader + ", " +
                "year: "+this.year+", " +
                "value:" + this.value +"}";
    }
//    脚踏实地而非好高骛远，少些激扬文字、挥斥方遒或愤青心态。
//    多些低调务实、持之以恒。这就是动物生存法则告诉我们的朴素而伟大的真理
}
